package com.hzqy.persistence.dao.industry;

import com.hzqy.persistence.dao.core.PersistenceDao;
import com.hzqy.web.vo.AlertInfoVo;
import com.hzqy.web.vo.industry.C2BascHistryVo;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public class AlertInfoDao extends PersistenceDao<AlertInfoVo, Integer> {
    public int insertAlertInfo(AlertInfoVo alertInfoVo){
        String namespace = this.getNamespace();
        return getSqlSession().insert(namespace + "insertAlertInfo", alertInfoVo);
    }
    public List<AlertInfoVo> selectAlertInfo(AlertInfoVo alertInfoVo){
        String namespace = this.getNamespace();
        return getSqlSession().selectList(namespace + "selectAlertInfo", alertInfoVo);
    }
    public List<AlertInfoVo> selectAlertInfoByPage(Map<String, Object> map){
        String namespace = this.getNamespace();
        return getSqlSession().selectList(namespace + "selectAlertInfoByPage", map);
    }
    
}
